package com.isoft.data.dao;

import com.isoft.data.xml.Lbde;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LbdeDao {
    @Insert("insert into META(SNDR,RCVR,SEQN,DDTM,TYPE,STYP)" +
            "values(#{lbde.meta.sndr},#{lbde.meta.rcvr},"+
            "#{lbde.meta.seqn},#{lbde.meta.ddtm},"+
            "#{lbde.meta.type},#{lbde.meta.styp})")
    public int addMETA(@Param("lbde") Lbde lbde);

    @Insert("insert into LBDE(SEQN,DDTM,FLID,FFID,FIDE,FATT,STAT,ISTA,LBDT,MSTA,MIST,MLBD) " +
            "values(#{lbde.meta.seqn},#{lbde.meta.ddtm},#{lbde.dflt.flid},#{lbde.dflt.ffid},#{lbde.dflt.fide}," +
            "#{lbde.dflt.fatt},#{lbde.dflt.stat},#{lbde.dflt.ista},#{lbde.dflt.lbdt},#{lbde.dflt.msta}" +
            ",#{lbde.dflt.mist},#{lbde.dflt.mlbd})")
    public int addLbde(@Param("lbde") Lbde lbde);

}
